<?php

require_once 'Zend/View/Helper/Abstract.php';

class Core_View_Helper_Cms_RenderPageModule extends Zend_View_Helper_Abstract
{
    public function renderPageModule()
    {
        $module = $this->view->pageData->module_page;
        $parts = explode('/', $module);
        if (count($parts) == 2) {
            return $this->view->renderModuleScript($parts[0], $parts[1]);
        }
    }
}